<html xmlns="http://www.w3.org/1999/html">

<head>
    <meta charset="UTF-8">
    <title>服务器列表</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/layui.css') }}" />
    <script src="{{ url_for('static', filename='layui.js') }}"></script>
    <meta http-equiv="Refresh" content="30";/>
</head>
<body>
<form class="layui-form" method="post">
    <div class="layui-form-item" align="left">
        <div class="layui-inline" align="right">
            <div class="layui-input-inline">
                <a href="http://127.0.0.1:5000/">首页</a>
            </div>
            <div class="layui-input-inline">
                <a href="http://127.0.0.1:5000/">服务器列表</a>
            </div>
            <div class="layui-input-inline">
                <a href="http://127.0.0.1:5000/tasklist">任务列表</a>
            </div>
        </div>
    </div>
</form>
<br />
<div id="page">
    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">服务器列表</div>
                    <div class="layui-card-body">
                        <table style="width:100%;">
                            <thead>
                                <td>服务器名称</td>
                                <td>服务器ip</td>
                                <td>最后更新时间</td>
                                <td>状态</td>
                            </thead>
                            <tbody>
                            {% for row in serverlist %}
                                <tr>
                                    <td  style="padding:5px;">{{ row['server_name'] | safe }}</td>
                                    <td>{{ row['ip'] | safe }}</td>
                                    <td>{{ row['lasttime'] | safe }}</td>
                                    <td>{{ row['status'] | safe }}</td>
                                </tr>
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>